package com.history.front.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller
@RequestMapping("/test")
public class HelloWorldController {

	@RequestMapping("/helloWord")
    public ModelAndView helloWord(HttpServletRequest request, HttpServletResponse response,String cp) throws Exception {  
		ModelAndView mv = new ModelAndView("test");  
        mv.addObject("title", "Spring MVC And velocity");  
        mv.addObject("content", " Hello world ， test my first spring mvc ! ");  
        return mv;  
    } 
}
